#!/bin/bash
cmd="gomonitor-server_amd64_linux"
pid=`ps -ef|grep $cmd|grep -v grep|awk '{print $2}'`
if [ "$pid" != "" ]
then
    echo "$cmd正在运行,pid是:$pid...."
else
    echo "$cmd已经停止"
fi
